#include "log_file.h"


FILE *log_file;

void set_log_file(const char *file_name)
{
   FILE *fp = fopen(file_name,"w+");
   if ( NULL == fp) {
       perror("Error Open Log file");
       exit(EXIT_FAILURE);
   }

   log_file = fp;
}

void set_log_stdout()
{
	log_file = stdout;
}
